package com.sina.shop;


import redis.clients.jedis.Jedis;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * 段浩杰   2017-12-08-14:50
 */
public class test {


    public static void main(String[] args) {
        String host = "120.79.50.213";
        int port = 6379;
        Jedis jedis = new Jedis(host, port);
        jedis.auth("sina");
        jedis.set("crxy", "www.crxy.cn");
        String string = jedis.get("crxy");
        System.out.println(string);
    }
}
